home *** CD-ROM | disk | FTP | other *** search
- property startTicks, nextPlay
-
- on beginSprite me
- global gNeighborAnimateMan, gSporadicSoundMan
- if movieWaiting(gNeighborAnimateMan) then
- playLotSound(gSporadicSoundMan)
- end if
- startTicks = the ticks
- end
-
- on exitFrame me
- global gNeighborAnimateMan, gSporadicSoundMan
- if not movieWaiting(gNeighborAnimateMan) then
- go(the frame)
- if not soundPlaying(gSporadicSoundMan) then
- if the ticks > (startTicks + nextPlay) then
- playLotSound(gSporadicSoundMan)
- startTicks = the ticks
- nextPlay = random(900) + 1800
- end if
- end if
- else
- if ClearToPlayQT() then
- go(the frame + 1)
- else
- go(the frame)
- end if
- end if
- end
-